
"""
# 计算总分
total = 0

def scores():
    total = student['java']+student['python']+student['mysql']
    avg = total/ 3
    return total,avg
# 评级判断
def grades():
    for stu in student:
        if isinstance(student[stu], int):
            if student[stu]<60:
                print(f"您的{stu}成绩为:{student[stu]}，评级为：不及格")
            elif student[stu]<=70:
                print(f"您的{stu}成绩为:{student[stu]}，评级为：及格")
            elif student[stu] <= 80:
                print(f"您的{stu}成绩为:{student[stu]}，评级为：良")
            elif student[stu] <= 100:
                print(f"您的{stu}成绩为:{student[stu]}，评级为：优秀")
if __name__ == '__main__':
    grades()
    scores()
    print()
    
    

    """
student = {'王芳':{'java':89,
                    'python':90,
                    'mysql':46}}
print(student)
print(student.keys())
del(student['王芳'])
print(student)
# pop(student)
# for stu in student:
#
#   #  print(student[stu])
#     for stu2 in student[stu]:
#         print(len(student[stu]))
#

